package com.zengshuai.miniprogrambackend.Service.impl;

import com.zengshuai.miniprogrambackend.Entity.ServiceSwiper;
import com.zengshuai.miniprogrambackend.Mapper.ServiceMapper;
import com.zengshuai.miniprogrambackend.Service.myService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.LinkedHashMap;
import java.util.Map;


@Service
public class myServiceImpl implements myService {


    @Autowired
    ServiceMapper serviceMapper;

    @Override

    public Map<String, String> getServiceSwiper(int serviceid) {
        ServiceSwiper result = serviceMapper.getServiceSwiper(serviceid);
        Map<String, String> linkedmap = new LinkedHashMap<>();

        linkedmap.put("swipervideocover",result.getSwipervideocover());
        linkedmap.put("swipervideourl", result.getSwipervideourl());
        linkedmap.put("swiperimageurl1", result.getSwiperimageurl1());
        linkedmap.put("swiperimageurl2", result.getSwiperimageurl2());
        linkedmap.put("swiperimageurl3", result.getSwiperimageurl3());
        System.out.println(result);

        return linkedmap;
    }
}
